import 'dart:async';
import '../mvp/bean/contact.dart';
import 'package:flutter/services.dart';
import 'dart:convert';

/**
 * 获取数据
 */
class MockContactRepository implements ContactRepository {
  @override
  Future<List<Contact>> fetch() {
    return new Future.value(kContacts);
  }
}

const kContacts = const <Contact>[
  const Contact(fullName: "Li bai", email: "libai@live.com"),
  const Contact(fullName: "Cheng yaojin", email: "chengyaojin@live.com"),
  const Contact(fullName: "Mi yue", email: "miyue@live.com"),
  const Contact(fullName: "A ke", email: "ake@live.com"),
  const Contact(fullName: "Lu ban", email: "luban@live.com"),
  const Contact(fullName: "Da qiao", email: "daqiao@live.com"),
  const Contact(fullName: "Hou yi", email: "houyi@live.com"),
  const Contact(fullName: "Liu bei", email: "liubei@live.com"),
  const Contact(fullName: "Wang zhaojun", email: "wangzhaoju@live.com"),
];
